<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
	<title>堆栈内存</title>
	<!-- IMPORT CSS -->
</head>

<body>
	<!-- IMPORT JS -->
	<script>
		/*
		 * 编译器（把代码解析成为浏览器看的懂的结构）
		 *    词法解析
		 *    AST抽象语法树
		 *    构建出浏览器能够执行的代码 
		 * 引擎（V8 / webkit内核）
		 *    变量提升
		 *    作用域 / 闭包
		 *    变量对象
		 *    堆栈内存
		 *    GO/VO/AO/EC/ECStack
		 *    ...  
		 */
	</script>
	<script>
		let a = 12;
		let b = a;
		b = 13;
		console.log(a);

		let a = {
			n: 12
		};
		let b = a;
		b['n'] = 13;
		console.log(a.n);

		let a = {
			n: 12
		};
		let b = a;
		b = {
			n: 13
		};
		console.log(a.n);
	</script>
</body>

</html>